/***************************************************************************
 *   Copyright (C) 2009 by Marcin Swiechowicz   *
 *   marcin.swiechowicz@gmail.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef KDCSUBTITLE_H
#define KDCSUBTITLE_H

#include "kdcobject.h"
#include "subtitle.h"

class KDCSubtitle : public KDCObject
{
public:
	KDCSubtitle( KDCObject *aParent = 0  );
	~KDCSubtitle();

	QString title() const;
	KIcon icon() const;

	int size() const;
	Qt::Alignment horizontalAlignment() const;
	Qt::Alignment verticalAlignment() const;

	void setSize( int aSize );
	void setHorizontalAlignment( Qt::Alignment aAlignment );
	void setVerticalAlignment( Qt::Alignment aAlignment );
	
	const QList<Subtitle*>& subtitles() const;
	void add( Subtitle *aSubtitle );
	void remove( int aIndex );
	void move( int aFrom, int aTo );
private:
	int pSize;
	Qt::Alignment pHorizontalAlignment;
	Qt::Alignment pVerticalAlignment;
	QList<Subtitle*> pSubtitle;
};
#endif
